package com.hospital.vac.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hospital.vac.entity.UserRole;
import org.apache.ibatis.annotations.Select;


/**
 * @description 用户角色数据访问层
 * @return
 * @author ANLGIN
 * @since 2023/3/9 17:07
 */

public interface UserRoleMapper extends BaseMapper<UserRole> {

    /**
    * 删除角色
    */
    @Select("delete from user_role where user_id=#{userId}")
    void deleteByUserRoleId(Long userId);
}
